package cn.edu.seu.ssny;

import cn.edu.seu.ssny.config.filter.AuthorizationFilter;
import cn.edu.seu.ssny.socket.Server;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableCaching
@EnableScheduling
@ServletComponentScan(basePackageClasses = {AuthorizationFilter.class})
@Slf4j
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
//        new Server();
        log.debug("启动成功");
    }

}
